#ifndef __SENSOR_READ_TASK_H__
#define __SENSOR_READ_TASK_H__
#include "BSP.h"
#include "Usart.h"
#include "stm32f10x_it.h"
#define TEMP_DATA_LEGAL_MIN (-25 * 10)
#define TEMP_DATA_LEGAL_MAX (50 * 10)

void    Sensor_Read_Task(void* pdata);
int16_t Get_sensor_temp(uint8_t index);
int16_t Get_sensor_avgtemp(void);
uint8_t Get_sensor_state(void);
int     FineTab(unsigned int data);
int     NTCresist(u16 ad_value);
int     AD_TO_Temp(u16 ad_value);
#endif
